home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_sea_holdcrates.cog < prev    next >
Text File  |  1999-11-15  |  1KB  |  61 lines

  1. # Jones 3D Cog Script
  2. #
  3. # sea_holdcrates.cog
  4. #
  5. # [DS]
  6. #
  7. # (C) 1999 LucasArts Entertainment Co. All Rights Reserved
  8. # ========================================================================================
  9.  
  10. symbols
  11.  
  12.     message     startup
  13.     message    activated
  14.     message    entered
  15.     message    exited
  16.     
  17.     thing        crate0
  18.     thing        crate1
  19.     thing        crate2
  20.     thing        crate3
  21.     thing        crate4
  22.     keyframe    nopush=in_pushpull_anticipate.key    local
  23.     thing        player                    local
  24.     int        i=0                        local
  25.     int        on_top=0                    local
  26.     sound        nope=inxj098.wav                local    #It won't budge.
  27.         
  28. end
  29.  
  30. # ========================================================================================
  31. code
  32.  
  33. startup:
  34.     player = GetLocalPlayerThing();
  35.     for (i=0; i<=4; i=i+1)
  36.     {
  37.     ClearThingFlags(crate0[i], 0x40000000);
  38.     }
  39.     return;
  40.  
  41. entered:
  42.     on_top=1;
  43.     return;
  44. exited:
  45.     on_top=0;
  46.     return;
  47.  
  48. activated:
  49.     if(on_top == 1) return;
  50.         MakeMeStop();
  51.         DeselectWeaponWait(player);
  52.         StartCutscene(0);
  53.     PlayKey(player, nopush, 4, 0x12, 1);
  54.     PlayVoice(player, nope, 1.0, 1);
  55.         EndCutscene();
  56.     ClearActorFlags(player, 0x200000);
  57.     return;
  58.       
  59. end
  60.  
  61.